﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PageLibrary.Page.Elements;

namespace PageLibrary
{
    class SearchResultsPage:DefaultPage
    {
        private List<Element<SearchResultsPageElements>> elements = new List<Element<SearchResultsPageElements>>();

        internal List<Element<SearchResultsPageElements>> Elements
        {
            get { return elements; }
            set { elements = value; }
        }

        public string GetPageElementByLabel(SearchResultsPageElements label)
        {
            return elements.Find(x => x.Label == label).XPath;
        }
    }
}
